/*
 * adcPacketStructs.h
 *
 * Created: 6/13/2013 2:55:54 AM
 *  Author: Tim
 */ 


#ifndef ADCPACKETSTRUCTS_H_
#define ADCPACKETSTRUCTS_H_



/*********ADC*********/

typedef enum
{
	ADC_CH0_bp		=	0x01,	
	ADC_CH1_bp		=	0x02,
	ADC_CH2_bp		=	0x04,
	ADC_CH3_bp		=	0x08
}ACHM_t;

typedef enum
{
	ADC_CH0_msk		=	0x00,
	ADC_CH1_msk		=	0x01,
	ADC_CH2_msk		=	0x02,
	ADC_CH3_msk		=	0x03
}ACHN_t;

typedef struct adcInitAsync_msg
{
	uint8_t Header;
	uint8_t msgHeader;
	struct adcInit_parameterByte1
	{
		uint8_t	GAIN		:3;
		uint8_t RESERVED	:1;
		uint8_t ACHM		:4;
		
	}PARAM1;

	struct adcInit_parameterByte2
	{
		uint8_t RESERVED	:8;
	}PARAM2;

	
	uint16_t checkSum;
}adcInit_t;

#endif /* ADCPACKETSTRUCTS_H_ */